/**
 * @author Ashley
 *
 * Sub-class of BasicType which is a sub-class of Type. 
 * Contains the name and size of the BasicType bool.
 */
public class BoolType extends BasicType {
	/*
	 * Default ctor that creates an BoolType object with
	 * name "bool" and size of 1 (byte).
	 */
	public BoolType() {
		super("bool", 4);
	}
	
	public BoolType(String strName) {
		super(strName, 4);
	}
	
	@Override
	public boolean isBool() { 
		return true; 
	}
	
	@Override
	public boolean isBasic() {
		return true;
	}
	
	@Override
	public boolean isAssignableTo(Type t) {
		if(t.isBool()) {
			return true;
		}
		return false;
	}
	
	@Override
	public boolean isEquivalentTo(Type t) {
		if(t.isBool()) {
			return true;
		}
		return false;
	}
}
